package com.bh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bh.order.domain.JcOrderBack;
import com.bh.order.domain.JcOrderBackImagesVo;
import com.bh.order.vo.JcBackOrderVO;

import java.util.List;

/**
 * 运单回单Service接口
 *
 * @author slx
 * @date 2023-04-22
 */
public interface IJcOrderBackService extends IService<JcOrderBack> {
    /**
     * 查询运单回单
     *
     * @param id 运单回单主键
     * @return 运单回单
     */
    public JcOrderBack selectJcOrderBackById(Long id);

    /**
     * 查询运单回单列表
     *
     * @param jcOrderBack 运单回单
     * @return 运单回单集合
     */
    public List<JcOrderBack> selectJcOrderBackList(JcOrderBack jcOrderBack);

    /**
     * 查询运单回单列表
     *
     * @param backOrderVO 运单回单
     * @return 运单回单集合
     */
    public List<JcBackOrderVO> selectJcBackOrderList(JcBackOrderVO backOrderVO);

    /**
     * 查询运单回单列表
     * @param orderId
     * @return
     */
    public List<JcOrderBack> selectJcOrderBackListByOrderId(Long orderId);

    /**
     * 接收
     * @param
     * @return
     */
    public int receive(Long[] ids);

    public int submit(Long[] ids);

    public int uploadBackImage(JcOrderBackImagesVo jcOrderBackImagesVo);

    /**
     * 新增运单回单
     *
     * @param jcOrderBack 运单回单
     * @return 结果
     */
    public int insertJcOrderBack(JcOrderBack jcOrderBack);

    /**
     * 修改运单回单
     *
     * @param jcOrderBack 运单回单
     * @return 结果
     */
    public int updateJcOrderBack(JcOrderBack jcOrderBack);

    /**
     * 批量删除运单回单
     *
     * @param ids 需要删除的运单回单主键集合
     * @return 结果
     */
    public int deleteJcOrderBackByIds(Long[] ids);

    /**
     * 删除运单回单信息
     *
     * @param id 运单回单主键
     * @return 结果
     */
    public int deleteJcOrderBackById(Long id);
}
